package com.fanshilz.flower2025.business.flower.addressCode.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 实体类。
 *
 * @author fugui
 * @since 2024-10-26
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("flower_address_code")
public class AddressCode implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long addressId;

    // 0=省 1=市 2=区/县
    private Integer type;

    private String provinceName;

    private String provinceCode;

    private String provinceLetter;

    private String cityName;

    private String cityCode;

    private String cityLetter;

    private String areaName;

    private String areaCode;

    private String areaLetter;

}
